package cn.edu.sjtu.stap.sdg.builder.test;

public class Ship {
    String captain, shipName;

    public Ship(String name) {
        this.shipName = name;
    }

    public void setCaptain(String person) {
        captain = person;
    }

    public String getCaptain() {
        return captain;
    }

    public void explore(String place) {
        System.out.println("explore " + place);
    }

    public static void main(String[] args) {
        // define
        Ship ship = new Ship("Pearl");
        // use
        ship.setCaptain("Depp");
        // parameter transferring
        ship.explore("Antarctica");
        //control dependency
    }
}

class Utils {
    public static void sendMessage(String name) {
        System.out.println("We have conqued " + name + " !");
    }
}
